import routes from './router'
import storeModule from './store/store-module'
import { createRequest } from './utils/request'
const { name } = require('../package.json')
export default function (Vue) {
  Vue.config.productionTip = false
  createRequest(this)
  // 挂载路由配置表
  this.$mountRoutes(name, routes)
  // 挂载有命名空间的store实例
  this.$store.registerModule(name, storeModule)
}
